<template>
  <div>
    <user v-bind="attrs" />
  </div>
</template>

<script>
import user from './user.vue'
export default {
  components: {
    user
  },
  data() {
    return {
      attrs: {}
    }
  },
  created() {
    // 深复制
    let attrs = JSON.parse(JSON.stringify(this.$attrs))
    attrs.user.phone = 'aaa == ' + attrs.user.phone
    this.attrs = attrs
  }
}
</script>

<style lang="scss" scoped></style>
